.class public Lcn/cheln/explorer/ui/SearchListViewHolder;
.super Lcn/cheln/explorer/ui/b;


# static fields
.field public static f:Ljava/lang/String;

.field public static h:Ljava/lang/String;


# instance fields
.field public a:Ljava/util/Map;

.field public b:Ljava/util/Map;

.field c:Lcom/direction/hold/ui/SearchActivity;

.field public d:Ljava/lang/String;

.field public e:Ljava/lang/String;

.field public g:Z

.field public i:Z

.field private l:Lcn/cheln/explorer/cpnt/adapter/b;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    sget-object v0, Lcn/cheln/explorer/ds/database/SQLManager;->a:Ljava/lang/String;

    sput-object v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->h:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Landroid/view/View;Lcom/direction/hold/ui/SearchActivity;)V
    .locals 7

    const/4 v5, 0x1

    const-string v6, ""

    invoke-direct {p0, p1, p2}, Lcn/cheln/explorer/ui/b;-><init>(Landroid/view/View;Lcom/direction/hold/ui/CommonActivity;)V

    new-instance v0, Ljava/util/TreeMap;

    sget-object v1, Lcn/cheln/support/b/a;->a:Ljava/util/Comparator;

    invoke-direct {v0, v1}, Ljava/util/TreeMap;-><init>(Ljava/util/Comparator;)V

    iput-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->a:Ljava/util/Map;

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    const-string v0, ""

    iput-object v6, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    iput-boolean v5, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->g:Z

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    const-string v1, "folder"

    new-instance v2, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    sget-object v3, Lcn/cheln/explorer/ds/a;->d:Landroid/net/Uri;

    const/4 v4, 0x6

    invoke-direct {v2, v3, v4}, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;-><init>(Landroid/net/Uri;I)V

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    const-string v1, "image"

    new-instance v2, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    sget-object v3, Lcn/cheln/explorer/ds/a;->c:Landroid/net/Uri;

    invoke-direct {v2, v3, v5}, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;-><init>(Landroid/net/Uri;I)V

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    const-string v1, "audio"

    new-instance v2, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    sget-object v3, Lcn/cheln/explorer/ds/a;->a:Landroid/net/Uri;

    const/4 v4, 0x0

    invoke-direct {v2, v3, v4}, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;-><init>(Landroid/net/Uri;I)V

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    const-string v1, "video"

    new-instance v2, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    sget-object v3, Lcn/cheln/explorer/ds/a;->b:Landroid/net/Uri;

    const/4 v4, 0x2

    invoke-direct {v2, v3, v4}, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;-><init>(Landroid/net/Uri;I)V

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    const-string v1, "apk"

    new-instance v2, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    sget-object v3, Lcn/cheln/explorer/ds/a;->e:Landroid/net/Uri;

    const/4 v4, 0x4

    invoke-direct {v2, v3, v4}, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;-><init>(Landroid/net/Uri;I)V

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    const-string v1, "doc"

    new-instance v2, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    sget-object v3, Lcn/cheln/explorer/ds/a;->e:Landroid/net/Uri;

    const/4 v4, 0x3

    invoke-direct {v2, v3, v4}, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;-><init>(Landroid/net/Uri;I)V

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object p2, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    const-string v1, "file"

    const-string v2, "Key_Search_Sort"

    const-class v3, Ljava/lang/String;

    invoke-static {v0, v1, v2, v3}, Lcn/cheln/support/app/e;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_0
    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    invoke-virtual {v0}, Lcom/direction/hold/ui/SearchActivity;->l()V

    :goto_0
    return-void

    :cond_1
    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->f:Ljava/lang/String;

    goto :goto_0
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;Z)Landroid/database/Cursor;
    .locals 9

    const/4 v4, 0x0

    if-nez p2, :cond_0

    move-object v1, v4

    :goto_0
    return-object v1

    :cond_0
    if-nez p3, :cond_2

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    invoke-interface {v1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    iget-object v1, v1, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;->c:Ljava/lang/Boolean;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    invoke-interface {v1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    iget-object v1, v1, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;->c:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-nez v1, :cond_2

    :cond_1
    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    invoke-interface {v1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;->b:Landroid/database/Cursor;

    goto :goto_0

    :cond_2
    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    invoke-interface {v1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    iget-object v1, v1, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;->b:Landroid/database/Cursor;

    invoke-static {v1}, Lcn/cheln/explorer/ui/SearchListViewHolder;->a(Landroid/database/Cursor;)V

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    invoke-interface {v1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    move-object v0, v1

    check-cast v0, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    move-object v7, v0

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    invoke-virtual {v1}, Lcom/direction/hold/ui/SearchActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    iget-object v2, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    invoke-interface {v2, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    iget-object v2, v2, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;->a:Landroid/net/Uri;

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/String;

    const/4 v6, 0x0

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v5, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    invoke-interface {v5, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    invoke-virtual {v5, p1}, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v8, "--"

    invoke-virtual {v5, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    aput-object v5, v3, v6

    move-object v5, v4

    move-object v6, v4

    invoke-virtual/range {v1 .. v6}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    iput-object v1, v7, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;->b:Landroid/database/Cursor;

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    invoke-interface {v1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    iget-object v2, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    invoke-interface {v2, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    iget-object v2, v2, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;->b:Landroid/database/Cursor;

    invoke-interface {v2}, Landroid/database/Cursor;->getCount()I

    move-result v2

    iput v2, v1, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;->d:I

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    invoke-interface {v1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;->b:Landroid/database/Cursor;

    goto/16 :goto_0
.end method

.method private static a(Landroid/database/Cursor;)V
    .locals 1

    if-eqz p0, :cond_0

    invoke-interface {p0}, Landroid/database/Cursor;->isClosed()Z

    move-result v0

    if-nez v0, :cond_0

    invoke-interface {p0}, Landroid/database/Cursor;->close()V

    :cond_0
    return-void
.end method

.method private declared-synchronized a(Z)V
    .locals 7

    const/4 v6, 0x1

    monitor-enter p0

    :try_start_0
    invoke-direct {p0, p1}, Lcn/cheln/explorer/ui/SearchListViewHolder;->b(Z)V

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->a:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->size()I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    monitor-exit p0

    return-void

    :cond_1
    :try_start_1
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, " order by "

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v1, v1, Lcom/direction/hold/ui/SearchActivity;->e:Lcn/cheln/explorer/actions/sort/a;

    invoke-interface {v1}, Lcn/cheln/explorer/actions/sort/a;->c()Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->f:Ljava/lang/String;

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->a:Ljava/util/Map;

    new-instance v1, Ljava/lang/Integer;

    iget-object v2, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->a:Ljava/util/Map;

    invoke-interface {v2}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/Set;->toArray()[Ljava/lang/Object;

    move-result-object v2

    const/4 v3, 0x0

    aget-object v2, v2, v3

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/Integer;-><init>(Ljava/lang/String;)V

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    invoke-direct {p0, v1, v0, p1}, Lcn/cheln/explorer/ui/SearchListViewHolder;->a(Ljava/lang/String;Ljava/lang/String;Z)Landroid/database/Cursor;

    move-result-object v2

    if-eqz v2, :cond_0

    new-instance v0, Lcn/cheln/explorer/cpnt/adapter/b;

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v1, v1, Lcom/direction/hold/ui/SearchActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    iget-object v3, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v3, v3, Lcom/direction/hold/ui/SearchActivity;->B:Ljava/util/HashMap;

    const-class v4, Lcn/cheln/explorer/beans/FileInfo;

    const/4 v5, 0x0

    invoke-direct/range {v0 .. v5}, Lcn/cheln/explorer/cpnt/adapter/b;-><init>(Landroid/content/Context;Landroid/database/Cursor;Ljava/util/Map;Ljava/lang/Class;B)V

    iput-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->l:Lcn/cheln/explorer/cpnt/adapter/b;

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->l:Lcn/cheln/explorer/cpnt/adapter/b;

    invoke-virtual {v0, v1}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->a(Lcn/cheln/support/adapter/a;)V

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->a:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->size()I

    move-result v0

    if-le v0, v6, :cond_3

    move v1, v6

    :goto_1
    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->a:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->size()I

    move-result v0

    if-ge v1, v0, :cond_3

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->a:Ljava/util/Map;

    new-instance v2, Ljava/lang/Integer;

    iget-object v3, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->a:Ljava/util/Map;

    invoke-interface {v3}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/Set;->toArray()[Ljava/lang/Object;

    move-result-object v3

    aget-object v3, v3, v1

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/Integer;-><init>(Ljava/lang/String;)V

    invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iget-object v2, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    invoke-direct {p0, v2, v0, p1}, Lcn/cheln/explorer/ui/SearchListViewHolder;->a(Ljava/lang/String;Ljava/lang/String;Z)Landroid/database/Cursor;

    move-result-object v0

    if-eqz v0, :cond_2

    iget-object v2, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v2, v2, Lcom/direction/hold/ui/SearchActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v2}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->e()Lcn/cheln/support/adapter/a;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcn/cheln/support/adapter/a;->a(Landroid/database/Cursor;)V

    :cond_2
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1

    :cond_3
    new-instance v0, Lcn/cheln/explorer/ui/a;

    invoke-direct {v0, p0}, Lcn/cheln/explorer/ui/a;-><init>(Lcn/cheln/explorer/ui/SearchListViewHolder;)V

    invoke-virtual {v0}, Lcn/cheln/explorer/ui/a;->start()V

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->l:Lcn/cheln/explorer/cpnt/adapter/b;

    invoke-virtual {v1}, Lcn/cheln/explorer/cpnt/adapter/b;->d()I

    move-result v1

    invoke-virtual {v0, v1}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->b(I)V

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    check-cast v0, Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->notifyDataSetChanged()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto/16 :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method private b(Z)V
    .locals 2

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->l:Lcn/cheln/explorer/cpnt/adapter/b;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->l:Lcn/cheln/explorer/cpnt/adapter/b;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/b;->c()V

    :cond_0
    if-nez p1, :cond_2

    :cond_1
    return-void

    :cond_2
    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;->b:Landroid/database/Cursor;

    invoke-static {v1}, Lcn/cheln/explorer/ui/SearchListViewHolder;->a(Landroid/database/Cursor;)V

    goto :goto_0
.end method


# virtual methods
.method public final a()V
    .locals 3

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->M:Landroid/view/View;

    if-nez v0, :cond_0

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v2, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    invoke-virtual {v2}, Lcom/direction/hold/ui/SearchActivity;->f()Landroid/view/View;

    move-result-object v2

    iput-object v2, v1, Lcom/direction/hold/ui/SearchActivity;->M:Landroid/view/View;

    invoke-virtual {v0, v2}, Lcom/direction/hold/ui/SearchActivity;->setContentView(Landroid/view/View;)V

    :cond_0
    invoke-virtual {p0}, Lcn/cheln/explorer/ui/SearchListViewHolder;->b()V

    return-void
.end method

.method public final varargs declared-synchronized a([Ljava/lang/Object;)V
    .locals 1

    monitor-enter p0

    const/4 v0, 0x0

    :try_start_0
    aget-object v0, p1, v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Boolean;->parseBoolean(Ljava/lang/String;)Z

    move-result v0

    invoke-direct {p0, v0}, Lcn/cheln/explorer/ui/SearchListViewHolder;->a(Z)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    monitor-exit p0

    return-void

    :catch_0
    move-exception v0

    :try_start_1
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final b()V
    .locals 5

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    const-class v1, Lcn/cheln/explorer/cpnt/adapter/CountAdapter;

    invoke-virtual {v0, v1}, Lcom/direction/hold/ui/SearchActivity;->a(Ljava/lang/Class;)V

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    invoke-virtual {v0}, Lcom/direction/hold/ui/SearchActivity;->r()V

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    const-class v1, Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;

    iget-object v2, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    invoke-virtual {v2}, Lcom/direction/hold/ui/SearchActivity;->e()Lcn/cheln/support/adapter/d;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/direction/hold/ui/SearchActivity;->a(Ljava/lang/Class;Lcn/cheln/support/adapter/d;)V

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    check-cast v0, Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/String;

    const/4 v3, 0x0

    const-string v4, "name"

    aput-object v4, v2, v3

    const-string v3, "#E33539"

    invoke-static {v3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v0, v1, v2, v3}, Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;->a(Ljava/lang/String;[Ljava/lang/String;I)V

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->c:Landroid/widget/ListView;

    iget-object v1, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v1, v1, Lcom/direction/hold/ui/SearchActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    return-void
.end method

.method public final declared-synchronized c()V
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->e()Lcn/cheln/support/adapter/a;

    move-result-object v0

    invoke-virtual {v0}, Lcn/cheln/support/adapter/a;->b()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/database/Cursor;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->e()Lcn/cheln/support/adapter/a;

    move-result-object v0

    invoke-virtual {v0}, Lcn/cheln/support/adapter/a;->b()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->isClosed()Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v0

    if-eqz v0, :cond_0

    :goto_0
    monitor-exit p0

    return-void

    :cond_0
    :try_start_1
    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->e()Lcn/cheln/support/adapter/a;

    move-result-object v0

    invoke-virtual {v0}, Lcn/cheln/support/adapter/a;->b()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/database/Cursor;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->e()Lcn/cheln/support/adapter/a;

    move-result-object v0

    invoke-virtual {v0}, Lcn/cheln/support/adapter/a;->b()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->requery()Z

    :cond_1
    iget-object v0, p0, Lcn/cheln/explorer/ui/SearchListViewHolder;->c:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->notifyDataSetChanged()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final d()V
    .locals 0

    return-void
.end method

.method public final e()V
    .locals 1

    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcn/cheln/explorer/ui/SearchListViewHolder;->b(Z)V

    return-void
.end method
